<?php
namespace catchAdmin\propaganda\tables\forms;

use catcher\library\form\Form;

class Educationclass extends Form
{
    public function fields(): array
    {
        // TODO: Implement fields() method.
        return [
            self::input('name', '宣教分类名称')->required(),
            self::radio('isopen', '是否开放')->value(1)->options(
                self::options()->add('开放', 1)->add('私有', 0)->render()
            ),
        ];
    }
}